package com.cc.flyingfish.service.impl;

import com.cc.flyingfish.service.AuthoritionService;
import com.cc.flyingfish.util.TokenParseUtil;
import com.cc.flyingfish.vo.LoginUserInfo;
import com.cc.flyingfish.vo.UsernameAndPassword;
import org.springframework.stereotype.Service;

/**
 * @author CHENCHEN
 * @company 北京学佳澳教育科技
 * @create 2023-02-28 15:12
 */
@Service
public class AuthoritionServiceImpl implements AuthoritionService {


    @Override
    public String loginGetToken(UsernameAndPassword usernameAndPassword) throws Exception {
        /**
         * TODO：
         *      登录验证
         */
        //生成token
        return TokenParseUtil.generateToken(new LoginUserInfo(999L));
    }
}
